// src\
<?php

namespace ierdre\planningBundle\Form;

use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilder;

class employeHorairePrsence extends AbstractType
{
    public function buildForm(FormBuilder $builder, array $options)
    {
        $builder->add('dateDebut', 'date', array(
                                                'widget' => 'single_text',
                                                'input' => 'datetime',
                                                'format' => 'dd/MM/yyyy',
                                                'attr' => array('class' => 'date'),
                                                )
                ->add('dateDFin', 'date', array(
                                                'widget' => 'single_text',
                                                'input' => 'datetime',
                                                'format' => 'dd/MM/yyyy',
                                                'attr' => array('class' => 'date'),
                                                )
            );
    }

    public function getName()
    {
        return 'erdre_planningBundle_employeHorairePresence';
    }
    
    public function getDefaultOptions(array $options){
        return array('data_class' => 'ierdre\planningBundle\Entity\employeHorairePresence');
    }
}